package com.magic.item.mapper;

import com.magic.item.pojo.SpecParam;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * Created by zhuqin on 2021/1/12
 */
public interface SpecParamMapper extends Mapper<SpecParam> {
    @Delete("delete from tb_spec_param where id = #{pid}")
    void deleteSpecParam(Long pid);
    @Select("select * from tb_spec_param where group_id = #{gid}")
    List<SpecParam> selectSpecParam(Long gid);
}
